﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shumisen.Web.Form
{
	internal static class Gurad
	{
		internal static void ArgumentNotNull(object argument, string parameterName)
		{
			if (argument == null)
			{
				throw new ArgumentNullException(parameterName);
			}
		}

		internal static void AssertTrue(bool condition)
		{
			if (!condition)
			{
				// TODO
				throw new InvalidOperationException();
			}
		}

		internal static void AssertTrue(Func<bool> predicate)
		{
			if (!predicate())
			{
				// TODO
				throw new InvalidOperationException();
			}
		}
	}
}
